home *** CD-ROM | disk | FTP | other *** search
/ PC Home 109 / PC Home 109.iso / data1.cab / Program_Files / MMenu.dxr / 00002.ls < prev    next >
Encoding:
Text File  |  2001-03-02  |  1.6 KB  |  76 lines

  1. on exitFrame
  2.   global timer, timer2, timer3, CentreImageAnimCheck, timer4, tickstore
  3.   quitbutton()
  4.   idbutton()
  5.   bebutton()
  6.   timebutton()
  7.   lifegames()
  8.   superrandomgenerator()
  9.   if the visible of sprite 28 = 1 then
  10.     set x to random(100)
  11.     if x >= 70 then
  12.       set the visible of sprite 42 to 1
  13.     else
  14.       set the visible of sprite 42 to 0
  15.     end if
  16.   else
  17.     set the visible of sprite 42 to 0
  18.   end if
  19.   if the visible of sprite 10 = 1 then
  20.     if timer = 0 then
  21.       startTimer()
  22.       set timer to 1
  23.     end if
  24.     if the timer >= 180 then
  25.       startTimer()
  26.       set the visible of sprite 10 to 1
  27.       go(24)
  28.     end if
  29.   else
  30.     set timer to 0
  31.   end if
  32.   if the visible of sprite 28 = 1 then
  33.     if timer2 = 0 then
  34.       startTimer()
  35.       set timer2 to 1
  36.     end if
  37.     if the timer >= 180 then
  38.       startTimer()
  39.       set the visible of sprite 28 to 1
  40.       set the visible of sprite 42 to 1
  41.       go(23)
  42.     end if
  43.   else
  44.     set timer2 to 0
  45.   end if
  46.   if the visible of sprite 15 = 1 then
  47.     if timer3 = 0 then
  48.       startTimer()
  49.       set timer3 to 1
  50.     end if
  51.     if the timer >= 180 then
  52.       startTimer()
  53.       set the visible of sprite 15 to 1
  54.       go(22)
  55.     end if
  56.   else
  57.     set timer3 to 0
  58.   end if
  59.   if CentreImageAnimCheck = 1 then
  60.     if timer4 = 0 then
  61.       set tickstore to the ticks
  62.       set timer4 to 1
  63.     end if
  64.     if the ticks >= (tickstore + 300) then
  65.       repeat with n = 60 down to 46
  66.         set the visible of sprite n to 0
  67.         set CentreImageAnimCheck to 0
  68.         set tickstore to 0
  69.       end repeat
  70.     end if
  71.   else
  72.     set timer4 to 0
  73.   end if
  74.   go(the frame)
  75. end
  76.